package com.xu.strategy;

import com.xu.factory.CashSuper;

/**
 *
 * @author xudenghui
 * @create 2023-05-17 13:45
 **/
public class CashContext {

    private CashSuper cashSuper;

    public CashContext(CashSuper cashSuper) {
        this.cashSuper = cashSuper;
    }

    public double getResult(double money){
        return  cashSuper.acceptCash(money);
    }
}
